// 记住我功能
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useRememberMeStore = defineStore(
  'rememberMe',
  () => {
    const isRemember = ref(false)
    const setIsRemember = (isRememberValue) => {
      isRemember.value = isRememberValue
    }
    return {
      isRemember,
      setIsRemember
    }
  },
  {
    persist: {
      key: 'NODEPAD_ISREMEBER_KEY'
    }
  }
)
